package com.cje.proxyInvocationHandler.JDKDynamicProxy;

/**
 * @Auther: ChenJinEn
 * @Date: 2020/8/8 17:07
 * @Description: //TODO
 */
public class Client {
    public static void main(String[] args) {
        ProxyInvocationHandler proxyInvocationHandler = new ProxyInvocationHandler(new Landlord1());
        Rent proxy = (Rent) proxyInvocationHandler.getProxy();
        proxy.rentHouse();
    }

}
